package main

import (
	"fmt"
	"lottery/bootstrap"
	"lottery/web/routers"
)

var port = 8080

func newApp() *bootstrap.Bootstrapper {
	// 初始化应用
	app := bootstrap.New("Go抽奖系统", "weac")
	app.Configure(routers.Configure)
	app.Bootstrap()

	return app
}

func main() {
	app := newApp()
	app.Listen(fmt.Sprintf(":%d", port))
}
